/*
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
*/
package internal

import (
	"github.com/spf13/cobra"
	"nodemessage.com/ruov-cli/cmd/internal/global"
)

// globalCmd represents the global command
var globalCmd = &cobra.Command{
	Use:   "global",
	Short: "全局环境管理",
	Long:  `提供全局环境变量管理功能，包括安装、卸载等操作`,
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Help()
	},
}

func init() {
	// 添加子命令
	globalCmd.AddCommand(global.InstallCmd)
	globalCmd.AddCommand(global.UninstallCmd)
	globalCmd.AddCommand(global.GetCmd)
	globalCmd.AddCommand(global.SetCmd)
}
